package com.tiancai.pojo.dto;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Schema(name = "搜索表Dto")
public class SearchDto {
    /**
     * 作者id
     */
    @Schema(description = "作者id")
    private Long userId;

    /**
     * 标题
     */
    @Schema(description = "标题")
    private String title;


    /**
     * 0-文本 1-图片 2-视频
     */
    @Schema(description = "0-文本 1-图片 2-视频")
    private Integer type;

    /**
     * 0-开放 1-可购买 2-可租赁 3-私有
     */
    @Schema(description = "0-开放 1-可购买 2-可租赁 3-私有")
    private Integer status;

    //分页查询
    /**
     * 页码
     */
    @Schema(description = "页码")
    private int page;
    /**
     * 每页数量
     */
    @Schema(description = "每页数量")
    private int pageSize;
}
